package com.yyx.server.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yyx.server.pojo.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yyx.server.vo.PageVo;
import com.yyx.server.vo.PieVo;
import com.yyx.server.vo.ResultVo;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author YongXin
 * @since 2021-07-24
 */
public interface EmployeeService extends IService<Employee> {

    IPage<Employee> getEmployeeByPage(Integer currentPage, Integer pageSize, Employee employee, LocalDate[] dateScope);

    String getWorkId();

    ResultVo addEmp(Employee employee);

    List<Employee> getEmployee(Integer id);

    IPage<Employee> getEmpWithSalary(Integer currentPage, Integer pageSize);

    List<PieVo> staJobLevel();

    Map<String, Integer> staPos();

    IPage<Employee> getEmpWithSalaryByWorkId(Integer currentPage, Integer pageSize, String workId);
}
